<!--#include("header.html")-->
<!--%import("js/select.js")-->
<!--%import("js/toggle.js")-->
<div class="btn_modhead"></div><!-- //btn_modhead -->
<div class="pxeSrch">
    <form class="srch_issue search openSrch" action="{Context::getRequestUri()}" method="get" >
        <fieldset style="height:47px;">
            <legend class="blind">Search Issues</legend>
                <span class="ipt_box"><input type="search" name="search_keyword" value="{$search_keyword}" placeholder="Search" id="ipt_srch_comm"></span>
                <input type="hidden" name="vid" value="{$vid}" />
				<input type="hidden" name="mid" value="{$mid}" />
				<input type="hidden" name="act" value="{$act}" />
				<input type="hidden" name="search_target" value="title_content" />
				<input type="hidden" name="d" value="1" />
                <input type="submit" class="btn_sbmt" value="Search">
        </fieldset>
    </form>
</div>
<div class="sec_lst_issue">
    <div class="header">
        <div class="pull_left">
            <p class="cap">There are <em>{$page_navigation->total_count}</em> issues exist</p>
        </div>
        <div class="pull_right">
            <a class="add" href="{getUrl('act','dispIssuetrackerNewIssue')}">{$lang->cmd_add}&nbsp;{$lang->cmd_new_issue}</a>
        </div>
    </div><!-- //header -->
    <table class="tb_issue">
        <!--@if($page_navigation->total_count == 0)-->
        <tr>
            <td colspan="7"><p>{$lang->noissue}</p></td>
        </tr>
        <!--@else-->
        <thead>
            <tr>
                <th class="num" scope="col">{$display_option['issue_id']->title}</th>
                <th class="status" scope="col">{$display_option['status']->title}</th>
                <th class="priority" scope="col">{$display_option['priority']->title}</th>
                <th class="goal" scope="col">Goal</th>
                <th class="subject" scope="col">{$display_option['title']->title}</th>
                <th class="author" scope="col">{$display_option['writer']->title}</th>
                <th class="date" scope="col">{$lang->date}</th>
            </tr>
        </thead>
        <tbody>
            <!--@foreach($issue_list as $val)-->
            <tr>
                <td class="num">{$val->get('document_srl')}</td>
                <td class="status">{$val->getStatus()}</td>
                <td class="priority">{$val->getPriorityTitle()}</td>
                <td class="goal">{cut_str($val->getMilestoneTitle(),15)}</td>
                <td class="subject"><a href="{getUrl('document_srl',$val->get('document_srl'))}">{cut_str($val->getTitle(),60)}</a></td>
                <td class="author">{$val->getNickName()}</td>
                <td class="date">{$val->getRegdate("Y.m.d")}</td>
            </tr>
            <!--@end-->
        </tbody>
        <!--@end-->
    </table>
    <div class="pagination">
        <ul>
            <li class="first">
                <a href="{getUrl('page',1,'document_srl','','division',$division,'last_division',$last_division)}">First</a>
            </li>
            <li class="prev">
                <!--@if($page>1)-->
                <a href="{getUrl('page',$page-1,'document_srl','','division',$division,'last_division',$last_division)}">Prev</a>
                <!--@else-->
                <a href="{getUrl('page',1,'document_srl','','division',$division,'last_division',$last_division)}">Prev</a>
                <!--@end-->
            </li>
            <!--@while($page_no = $page_navigation->getNextPage())-->
                <!--@if($page == $page_no)-->
                    <li><strong>{$page_no}</strong></li>
                <!--@else-->
                    <li><a href="{getUrl('page',$page_no,'document_srl','','division',$division,'last_division',$last_division)}">{$page_no}</a></li>
                <!--@end-->
            <!--@end-->
            <li class="next">
                <!--@if($page<$page_navigation->last_page)-->
                <a href="{getUrl('page',$page+1,'document_srl','','division',$division,'last_division',$last_division)}">Next</a>
                <!--@else-->
                <a href="{getUrl('page',$page_navigation->last_page,'document_srl','','division',$division,'last_division',$last_division)}">Next</a>
                <!--@end-->
            </li>
            <li class="end"><a href="{getUrl('page',$page_navigation->last_page,'document_srl','','division',$division,'last_division',$last_division)}">End</a></li>
        </ul>
    </div>
</div><!-- //sec_lst_issue -->
<!--#include('footer.html')-->